<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程添加</title>
	<load href="__JS__/jQuery/jquery.js" />
   	<load href="__JS__/jQuery/jquery.form.js" />
	<load href="__CSS__/menu.css" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
				//beforeSubmit:  function(){alert("before");},  // pre-submit callback
				success:       complete,  // post-submit callback
				error:function(){alert("error");},
				dataType: 'json'
			});
           
			function complete(data){
			if (data.status==1)
			{
				window.location='__URL__/coursedetail';
             }else{
				$('#result').html(data.info).show();
             }
		}
	});
	</script>
</head>
	<body bgcolor="#EEEEEE">
	<layout name="Auth:header" />
	<iframe src="__URL__/menu" style="position:absolute; left:40px; top:350px; width:180px; height:190px;" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
	<div style="position:relative; top:-50px; left:240px; font-size:12px; width:60%;">
	<a href='__APP__/index/index'>主页</a>>
	<a href='__URL__/index'>后台管理</a>>
	<a href='__URL__/coursedetail'>课程管理</a>>
	添加课程
	</div>
	<div id="result" style="position:relative; left:440px;"></div>
	<div align="center">
		<form id='form1' method="post" action="__URL__/courseadd_post" >
			课程名称<input type="text" name="name" style="width:100px;">
			院系名称<select name="departmentid">									  
						<volist name='deplist' id='vo'>
						<option value =	{$vo.id}>{$vo.name}</option>
						</volist>
						</select>
			<input type="submit" value="添加课程">
			</form>
		</div>
</body>
</html>